import instance from "@/tools/axios";

//添加活动
const AddActivity = async (data: any): Promise<ResponseApiDto> => {
  return instance.post("/CarEvents/Add", data);
};

//修改活动
const Update = async (data: any): Promise<ResponseApiDto> => {
  return instance.post("/CarEvents/Update", data);
};

//查询进行中
const Get_underway = async (data: any): Promise<ResponseApiDto> => {
  return instance.get("/CarEvents/Get_underway", data);
};

//查询结束的活动
const Get_js_underway = async (data: any): Promise<ResponseApiDto> => {
  return instance.get("/CarEvents/Get_js_underway", data);
};

//查询活动人员
const Pagination = async (data: any): Promise<ResponseApiDto> => {
  return instance.get("/ActivityParticipants/Pagination", data);
};

export { AddActivity, Get_underway, Update, Get_js_underway, Pagination };
